package com.menqui.localizame.Menues;

import com.menqui.localizame.R;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;

public class Menues {
	private static final int MENU_PREFERENCIAS = Menu.FIRST;
	private Context context;
	private Activity activity;
	
	public Menues(Menu menu, Context context, Activity activity) {
		this.context = context;
		this.activity = activity;
		menu.add(0, MENU_PREFERENCIAS, 0, context.getString(R.string.config));
	}

	public void seleccionarOperacion(MenuItem item) {
		switch(item.getItemId()) {
			case MENU_PREFERENCIAS:
				Intent myIntent = new Intent(context, Preferencias.class);
                activity.startActivityForResult(myIntent, 0);
				break;
		}
		
	}
}
